QT       += core gui quickwidgets charts quick network serialport axcontainer  concurrent

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets printsupport

CONFIG += c++11

QMAKE_CXXFLAGS_RELEASE += -O0

# The following define makes your compiler emit warnings if you use
# any Qt feature that has been marked deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS

# You can also make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
    cpp/Demodulator/Demodulator.c \
    cpp/Demodulator/DemodulatorDelete.c \
    cpp/Demodulator/DemodulatorInit.c \
    cpp/Demodulator/DemodulatorParamSet.c \
    cpp/LoadINIFile.c \
    cpp/mBPSK_Demodulator/BPSK_DemodStructCreate.c \
    cpp/mBPSK_Demodulator/BPSK_Demodulator.c \
    cpp/mCarrierSync/CarrierDPLL.c \
    cpp/mCarrierSync/CarrierDPLLStructCreate.c \
    cpp/mChirpDetection/ChirpDetection.c \
    cpp/mChirpDetection/ChirpDetectionCreate.c \
    cpp/mCommon/FirFilter.c \
    cpp/mCommon/IIRFilter.c \
    cpp/mCommon/MOD.c \
    cpp/mCommon/dp_cfftr2_dit.c \
    cpp/mCommon/dp_fft_ifft_support_module.c \
    cpp/mCommon/dp_icfftr2_dif.c \
    cpp/mCommon/mat_Complex.c \
    cpp/mCommon/mat_LU_int.c \
    cpp/mCommon/mat_conversion.c \
    cpp/mCommon/mat_io_complex.c \
    cpp/mCommon/mat_io_double.c \
    cpp/mCommon/mat_io_int.c \
    cpp/mCommon/mat_mul_complex.c \
    cpp/mCommon/mat_mul_double.c \
    cpp/mCommon/mat_mul_int.c \
    cpp/mCommon/mat_sub_complex.c \
    cpp/mCommon/mat_swap_double.c \
    cpp/mCommon/mat_transp_complex.c \
    cpp/mCommon/mat_transp_double.c \
    cpp/mCommon/permutation.c \
    cpp/mDecimator/Decimator.c \
    cpp/mDecimator/Decimator1.c \
    cpp/mDecimator/DecimatorCreate.c \
    cpp/mDecimator/DecimatorCreate1.c \
    cpp/mDualSensorDenoise/DSNC_Cancel.c \
    cpp/mDualSensorDenoise/DSNC_Struct.c \
    cpp/mDualSensorDenoise/RLS_Filter.c \
    cpp/mDualSensorDenoise/RLS_Struct.c \
    cpp/mDualSensorDenoise/RLS_Training.c \
    cpp/mEqualizerDFE/EqualizerDFE.c \
    cpp/mEqualizerDFE/EqualizerDFEStructCreate.c \
    cpp/mEqualizerDFE/EqualizerDFE_Data.c \
    cpp/mEqualizerDFE/EqualizerDFE_Reset.c \
    cpp/mFarrowInterpFilter/BinomialCoefficient.c \
    cpp/mFarrowInterpFilter/FarrowInterpFilter.c \
    cpp/mFarrowInterpFilter/FarrowInterpFilterStructCreate.c \
    cpp/mFarrowInterpFilter/FarrowSRCCoefficient.c \
    cpp/mFarrowInterpFilter/PolyApproximation.c \
    cpp/mFarrowInterpFilter/rfa.c \
    cpp/mFrameSync/FrameSync.c \
    cpp/mFrameSync/FrameSyncStructCreate.c \
    cpp/mFrameSync/UpdateDataFrameLen.c \
    cpp/mMedianFilter/MedFilter.c \
    cpp/mMedianFilter/MedFilterCreate.c \
    cpp/mPreFilter/PreFilter.c \
    cpp/mPreFilter/PreFilter1.c \
    cpp/mPreFilter/PreFilterCreate.c \
    cpp/mPreFilter/PreFilterCreate1.c \
    cpp/mPumpStrokeFreqMeasure/FpumpMeasure_StructCreate.c \
    cpp/mPumpStrokeFreqMeasure/PumpFrequencyMeasure.c \
    cpp/mSignalBuf/BufDump.c \
    cpp/mSignalBuf/BufGetUsed.c \
    cpp/mSignalBuf/BufRead.c \
    cpp/mSignalBuf/BufStructCreate.c \
    cpp/mSignalBuf/BufWrite.c \
    cpp/demoudleform.cpp \
    cpp/main.cpp \
    cpp/mainwindow.cpp \
    cpp/guideform.cpp \
    cpp/dataanaysisform.cpp \
    cpp/recordform.cpp \
    cpp/predictlineform.cpp \
    cpp/configform.cpp \
    cpp/qcustomplot.cpp \
    cpp/HistoryForm.cpp \
    cpp/HistoryForm_1.cpp \
    cpp/HistoryForm_2.cpp \   
    cpp/console.cpp \
    cpp/LoginForm.cpp \
    cpp/utils/BMachineControl.cpp \
    cpp/RadarForm.cpp \
    cpp/utils/MutiSignalDecode.cpp \
    cpp/utils/MutiSerialControl.cpp \
    cpp/utils/antcpserver.cpp \
    cpp/utils/antcpsocket.cpp \
    cpp/utils/anthreadpool.cpp \
    cpp/utils/MutiConfFile.cpp \
    cpp/utils/tcpclient.cpp \
    cpp/formtext.cpp \
    cpp/dbpsk/DBPSK_Demodulator.c \
    cpp/dbpsk/DownlinkDemodulator.c

HEADERS += \
    head/RadarForm.h \
    head/LoginForm.h \
    head/fftw3.h \
    head/HistoryForm.h \
    head/HistoryForm_1.h \
    head/HistoryForm_2.h \
    head/ConstDefine.h \
    head/DemodulatorParamDeclare.h \
    head/DemodulatorStruct.h \
    head/LoadINIFile.h \
    head/clientwidget.h \
    head/mBPSK_Demodulator/BPSK_Demodulator.h \
    head/mCarrierSync/CarrierDPLL.h \
    head/mChirpDetection/ChirpDetection.h \
    head/mCommon/FirFilter.h \
    head/mCommon/IIRFilter.h \
    head/mCommon/MOD.h \
    head/mCommon/Matrix.h \
    head/mCommon/Matrix_complex.h \
    head/mCommon/Matrix_double.h \
    head/mCommon/Matrix_int.h \
    head/mCommon/dp_cfftr2_dit.h \
    head/mCommon/dp_icfftr2_dif.h \
    head/mCommon/mat_Complex.h \
    head/mCommon/mat_LU.h \
    head/mCommon/mat_memory.h \
    head/mDecimator/Decimator.h \
    head/mDualSensorDenoise/DSNC.h \
    head/mEqualizerDFE/EqualizerDFE.h \
    head/mFarrowInterpFilter/FarrowInterpFilter.h \
    head/mFrameSync/FrameSync.h \
    head/mMedianFilter/MedFilter.h \
    head/mPreFilter/PreFilter.h \
    head/mPumpStrokeFreqMeasure/PumpFrequencyMeasure.h \
    head/mSignalBuf/SignalBuf.h \
    head/configform.h \
    head/utils/MutiSerialControl.h \
    head/utils/MutiSignalDecode.h \   
    head/demoudleform.h \
    head/predictlineform.h \
    head/dataanaysisform.h \
    head/recordform.h \
    head/guideform.h \
    head/mainwindow.h \
    head/utils/exportutil.h \
    head/qcustomplot.h \   
    head/console.h \
    head/utils/BMachineControl.h \
    head/utils/antcpserver.h \
    head/utils/antcpsocket.h \
    head/utils/anthreadpool.h \
    head/antlv.h \
    head/utils/MutiConfFile.h \
    head/utils/tcpclient.h \
    head/formtext.h  \
    head/dbpsk/DBPSK_Demodulator.h \
    head/dbpsk/DownlinkDemodulator.h  \
    head/dbpsk/DataTypeDef_F28.h \
    head/dbpsk/DownlinkModemParam.h \
    head/dbpsk/OFDM_Frame.h \
    head/dbpsk/PhyPktDownlink.h


FORMS += \
    form/LoginForm.ui \
    form/configform.ui \
    form/dataanaysisform.ui \
    form/demoudleform.ui \
    form/guideform.ui \
    form/historyform.ui \
    form/historyform_1.ui \
    form/historyform_2.ui \
    form/mainwindow.ui \
    form/predictlineform.ui \
    form/radarform.ui \
    form/recordform.ui \
    form/formtext.ui

INCLUDEPATH += $$PWD/deps/include
INCLUDEPATH += $$PWD/../antlv

DISTFILES += \
      cpp/InitParam.ini
RESOURCES += \
    resource.qrc \

RC_FILE=resource.rc

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target



LIBS += -L$$PWD/lib/ -llibfftw3-3
